#pragma once
//DirectX 11 files
#include <D3D11.h>
#include <DirectXMath.h>
#include <dxgi.h>
#include <d3dcommon.h>
#pragma comment(lib, "d3d11.lib")
#pragma comment(lib, "dxgi.lib")
#pragma comment(lib, "windowscodecs.lib")
/////////////////////////////////////////

using namespace DirectX;

class Renderer
{
	IDXGISwapChain *swapChain;
	ID3D11Device *device;
	ID3D11DeviceContext *context;
	ID3D11RenderTargetView *backbuffer;

public:
	Renderer();
	~Renderer();
	void InitD3D(HWND hwnd, unsigned short windowWidth, unsigned short windowHeight); //initialize Direct3D
	void CleanD3D(void); //close D3D and release memory

	void RenderFrame(void); //render a single frame to buffer
};

